//
//  DCFAlertView.h
//  DCF
//
//  Created by 吴文拼 on 2017/12/26.
//  Copyright © 2017年 吴文拼. All rights reserved.
//

#import <UIKit/UIKit.h>

@class DCFAlertView;
@protocol DCFAlertViewDelegate <NSObject>

- (void)dcfAlertView:(DCFAlertView *)alertView withButtonIndex:(NSUInteger)index;

@end

@interface DCFAlertView : UIView

@property (nonatomic , weak)id<DCFAlertViewDelegate> delegate;

-(instancetype)initWithDelegate:(id)delegate withTitleText:(NSString *)titleText andDetailText:(NSString *)detailText andBottomBtnTitleArr:(NSArray<NSString *> *)btnTitleArr;

-(instancetype)initLongTextWithDelegate:(id)delegate withTitleText:(NSString *)titleText andDetailText:(NSString *)detailText andBottomBtnTitleArr:(NSArray<NSString *> *)btnTitleArr;

-(instancetype)initWithDelegate:(id)delegate titleImage:(UIImage *)titleImage imageSize:(CGSize)imageSize withTitleText:(NSString *)titleText andDetailText:(NSString *)detailText andBottomBtnTitleArr:(NSArray<NSString *> *)btnTitleArr;

-(instancetype)initInScanFaceWithDelegate:(id)delegate andBackImg:(UIImage *)backImg;

-(void)showInView:(UIView *)view;

-(void)hide;

@end
